package com.wbihua.common.metrics.type;

import lombok.Getter;

@Getter
public enum EventTimerType {
    REQUEST_TIMER("http.requests.latency.seconds.timer", new String[]{"path", "method", "code"},"Request latency in seconds.");

    private final String name;
    private String[] tags = new String[]{};
    private double[] percentiles = new double[]{0.5, 0.95, 0.99};
    private String description;

    EventTimerType(String name) {
        this.name = name;
    }

    EventTimerType(String name, String[] tags, String description) {
        this.name = name;
        this.tags = tags;
        this.description = description;
    }
}
